/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package koor.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 *
 * @author Admin
 */
@Entity
@Table(name = "teacher")
public class Teacher extends Person{
    
    @Column(name = "post")
    private String post;
    
    @Column(name = "rank")
    private String rank;

    public Teacher() {
    }

    public Teacher(String post, String rank, String firstName, String secondName, String patronymic) {
        super(firstName, secondName, patronymic);
        this.post = post;
        this.rank = rank;
    }

    public Teacher(String post, String rank, String firstName, String secondName, String patronymic, int id) {
        super(firstName, secondName, patronymic, id);
        this.post = post;
        this.rank = rank;
    }

    public String getPost() {
        return post;
    }

    public void setPost(String post) {
        this.post = post;
    }

    public String getRank() {
        return rank;
    }

    public void setRank(String rank) {
        this.rank = rank;
    }
    
}
